// Authors: Matthew DeNovio

#include "Pixel.h"


// Constructors
Pixel::Pixel(void)
{
	_color = 0;
}

Pixel::Pixel(U8 color) : _color(color){}

// Deconstructor
Pixel::~Pixel(void)
{
}

// Operator overload of <<
ostream& operator<<(ostream& out, const Pixel& p)
{
	p.print(out);
	return out;
}

// Prints out the 'Pixel'
void Pixel::print(ostream& out) const
{
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),_color);
	cout << char(178);
}